import http from "../../utils/request"
import type { LoginData, Menu, ResponseLoginData } from "./type"

export const getAuthCode=()=>{

  
  return  http.get("auth/authCode")

}

/**
 * 登录
 */
export const checkLogin=(data:LoginData)=>{
  
    return  http.post<ResponseLoginData>("administrator/checkloginByCode",data)
  
  }